<% title "Add a New User" %>

<%= error_messages_for :user %>

<h2>Add a New User</h2>

<% form_for :user, @user, :url => users_path, :html => { :multipart => true } do |form| %>
<p><label for="person_name">Name</label><br/>
<%= form.text_field :name %></p>

<p><label for="email">Email</label><br/>
<%= form.text_field :email %></p>

<p><label>Time zone</label><br/>
   <%= form.time_zone_select('time_zone', nil) %>
</p>

<p>
   <%= form.file_field :photo %>
</p>

<p><label for="password">Password</label><br/>
<%= form.password_field :password %></p>

<p><label for="password_confirmation">Confirm Password</label><br/>
<%= form.password_field :password_confirmation %></p>

<p><%= submit_tag 'Add' %> or <%= link_to('cancel', users_path) %></p>
<% end %>